local base = game_mode.localbase
local cmode = class("clientmode",base)

function cmode:init(roomID)
    base.init(self)
    self.roomID = roomID
end

function cmode:addNetPlayer(tank,netID)
    tank.netID = netID
    self.players[netID] = {tank = tank,netID = netID,score = 0}
end


function cmode:draw()
    base.draw(self)
    if net.ping then
    	love.graphics.setFont(texture.tinyfont)
    	love.graphics.setColor(1, 0, 0, 1)
    	love.graphics.print("ping: "..math.ceil(net.ping*1000))
    end

    if self.gameTime then
    	love.graphics.setFont(texture.midfont)
    	love.graphics.setColor(1, 1, 0, 1)
    	local sw,sh = love.graphics.getDimensions()
    	love.graphics.printf("Game Time: "..math.ceil(self.gameTime),sw/2-200,0,400,"center")
    end
end

return cmode